<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:t="http://myfaces.apache.org/tomahawk">
    <head>

    </head>
    <body>
        <ui:composition template="/MenuTemplate_wave.xhtml">
            <ui:define name="content_nav">
                #{msg.content_nav_enterprisemanage}
            </ui:define>
            <ui:define name="content">
                <h:form id="iptLxkrPrjForm">
                    <h:panelGrid  styleClass="body_content_box" columns="1">
                        <h:messages globalOnly="true" infoClass="info"  errorClass="alert" fatalClass="colorOrange" />
                        <h:panelGrid styleClass="title_border" columns="1" cellpadding="0" cellspacing="0">
                            <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                         cellspacing="2">
                                <h:outputLabel value="#{msg.content_title_enter_basic_info}"  style="vertical-align: middle"/>
                            </h:panelGrid>
                            <h:panelGrid style="width: 100%; margin: 3px 5px 0px 5px" cellpadding="0" border="0" cellspacing="3">
                                <h:panelGrid columns="1" cellspacing="0" style="width: 95%">
                                    <!--  单位名称、联系方式等   --> 
                                    <h:panelGrid columns="3" cellspacing="0" style="width:100%;text-align: left" >
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_name}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.enterpriseName}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.enterpriseName}" rendered="#{enterpriseListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_address}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.enterpriseAddress}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.enterpriseAddress}" rendered="#{enterpriseListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_75,com_width_75" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_contactor}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.enterpriseContactor}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.enterpriseContactor}" rendered="#{enterpriseListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_phone}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.enterprisePhone}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.enterprisePhone}" rendered="#{enterpriseListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_email}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.enterpriseEmail}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.enterpriseEmail}" rendered="#{enterpriseListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                    </h:panelGrid>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
                        <h:panelGrid styleClass="title_border" columns="1" cellpadding="0" cellspacing="0">
                            <h:panelGrid styleClass="search_title" columns="1" cellpadding="0"
                                         cellspacing="2">
                                <h:outputLabel value="#{msg.content_title_enter_account_info}"  style="vertical-align: middle"/>
                            </h:panelGrid>
                            <h:panelGrid style="width: 100%; margin: 3px 5px 0px 5px" cellpadding="0" border="0" cellspacing="3">
                                <h:panelGrid columns="1" cellspacing="0" style="width: 95%">
                                    <!--  开户信息  --> 
                                    <h:panelGrid columns="3" cellspacing="0" style="width:100%;text-align: left" >
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_accountname}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.accountName}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.accountName}" rendered="#{enterpriseListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_75,com_width_120" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_accountbank}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.accountBank}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.accountBank}" rendered="#{enterpriseListBean.currentOperation == 1}" />
                                        </h:panelGrid>
                                        <h:panelGrid columnClasses="com_width_75,com_width_75" columns="2" cellpadding="2" border="0" cellspacing="0">
                                            <h:outputLabel value="#{msg.label_enterprise_accountNo}" styleClass="com_label_blue"></h:outputLabel>
                                            <h:inputText value="#{enterpriseListBean.currentEnterprise.accountNo}" rendered="#{enterpriseListBean.currentOperation >= 2}"></h:inputText>
                                            <h:outputText value="#{enterpriseListBean.currentEnterprise.accountNo}" rendered="#{enterpriseListBean.currentOperation == 1}"></h:outputText>
                                        </h:panelGrid> 
                                    </h:panelGrid>
                                </h:panelGrid>
                            </h:panelGrid>
                        </h:panelGrid>
            
                    <h:panelGrid columns="2" cellspacing="5" style="width:100%;text-align: left">
                        <h:panelGrid columns="2">
                            <h:commandButton value="#{msg.bt_return}" action="#{enterpriseListBean.toLastPage}"/>
                            <h:commandButton value="#{msg.bt_submit_enterprise}"  action="#{enterpriseListBean.saveEnterprise}" rendered="#{enterpriseListBean.currentOperation >= 2}" />
                        </h:panelGrid>
                        <h:outputLabel></h:outputLabel>
                    </h:panelGrid>
  </h:panelGrid>


                </h:form>
            </ui:define>
        </ui:composition>
    </body>
</html>